{% include "header.html" %}

<div class="content">
  {% include "preheader.html" %}
  <div class="main_content">
    <div class="sd_left">
      <div class="text_padding">
      
      {% include "adv.html" %}
      
{% if user %}
<a href="/edit?uuid={{article.key.id}}">edit</a>
{% endif %}

<h2>      
      		{% ifequal lang "eng" %}
<a href="/view?t={{article.title_eng}}&uuid={{article.key.id}}&lang={{lang}}">{{article.title_eng}}</a></h2>
{% else %}
<a href="/view?t={{article.title_translit}}&uuid={{article.key.id}}&lang={{lang}}">{{article.title}}</a></h2>
{% endifequal %}
</h2>
{% ifequal lang "eng" %}
{{article.content_eng}}
{% else %}
{{article.content}}

{% endifequal %}
<br/>
<b>Теги: {{article.keywords}}</b>
<p class="date">
{% if user %}
<a href="/edit?uuid={{article.key.id}}&category={{category}}">edit</a>
{% endif %}

<img src="/images/timeicon.gif" alt="" />{{article.date|date:"d-M-Y H:m"}} </p>

 {% include "adv_text.html" %}
 
<h2>Comments:</h2>
<div style="font-size:14px;">
{% for comment in comments %}
	{% ifequal lang "eng" %}
		<b><a href="{{comment.site}}">@{{comment.name}}</a></b>&nbsp;&nbsp;{{comment.comment_eng}}
	{% else %}
		<b><a href="{{comment.site}}">@{{comment.name}}</a></b>&nbsp;&nbsp;{{comment.comment}}
	{% endifequal %}
	
	{% ifequal session.user_id comment.user_id %}
		<a href="/delete_comment?uuid={{article.key.id}}&cuuid={{comment.key}}&lang={{lang}}">delete</a>		
	{% endifequal %}	
	
	{% if user %}
		<a href="/delete_comment?uuid={{article.key.id}}&cuuid={{comment.key}}&all={{lang}}">spam</a>		
	{% endif %}
	<br/><br/>
	
{% endfor %}
</div>
<br/>
<br/>
<br/>

<form action="/add_commnet" method="post">
<input type="hidden" name="uuid" value="{{article.key.id}}" />
<input type="hidden" name="lang" value="{{lang}}" />
<table>
	<tr>
		<td>Name<span style="color:RED;font-size:14px;">*</span>:</td>
		<td><input type="text" name="name" value="{{name}}"></td>		
	</tr>
	<tr>
		<td>Site:</td>
		<td><input type="text" name="site" value="{{site}}"></td>		
	</tr>
	<tr>
		<td>Comment<span style="color:RED;font-size:14px;">*</span>:</td>
		<td><textarea name="comment" cols="80" rows="3">{{comment}}</textarea></td>		
	</tr>
	
	<tr>
		<td>Captcha<span style="color:RED;font-size:14px;">*</span>:</td>
		<td>
		 
	<script type="text/javascript"
       src="http://www.google.com/recaptcha/api/challenge?k=6Ld9tL0SAAAAABLhM86KAtJKzgyTjukZuBtkEuGq">
    </script>
    <noscript>
       <iframe src="http://www.google.com/recaptcha/api/noscript?k=6Ld9tL0SAAAAABLhM86KAtJKzgyTjukZuBtkEuGq"
           height="300" width="500" frameborder="0"></iframe><br>
       <textarea name="recaptcha_challenge_field" rows="3" cols="40">
       </textarea>
       <input type="hidden" name="recaptcha_response_field"
           value="manual_challenge">
    </noscript>
		 
		 
		{% if name and comment %}
			<span style="color:RED;font-size:14px;">Captcha not correct</span><br/>
		{% endif%}
		</td>		
	</tr>	
		
	<tr>
		<td>&nbsp;</td>
		<td><input type="submit" value="Add Comment"/><br/></td>		
	</tr>
	<tr>
		<td colspan="2">
	{% include "adv_text.html" %}		
		</td>
	</tr>
	
	
</table>

<span style="color:RED;font-size:14px;">*</span> - require
</form>
    		
      </div>
      {% include "adv_footer.html" %}
    </div>
    {% include "footer.html" %}
  </div>
</div>
</body>
</html>




